<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!-- 
        1.获取要操作的关闭按钮和广告元素

        2.关闭按钮注册单击事件
        
        3.隐藏广告元素
     -->
     <img src="images/luzhou.jpg" alt="" class="lz">
     <img src="images/close.jpg" alt="" class="clos">
     <script>
         var lz = document.querySelector('.lz')
         var clos = document.querySelector('.clos')
         clos.onclick = function(){
             lz.style.display = 'none'
             clos.style.display = 'none'
         }
     </script>
</body>
</html>